/*
 * BonusPushProcess.java
 * business
 *
 * Created by ChenTao on 2016/10/31.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data.push.process;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import com.yidiandao.business.data.bean.Message;
import com.yidiandao.business.data.push.AbsPushProcess;
import com.yidiandao.business.ui.assetabout.coupon.CouponActivity;

/** 优惠券推送处理 */
public class CouponPushProcess extends AbsPushProcess {

    public CouponPushProcess(Context context, Message message, boolean isForeground) {
        super(context, message, isForeground);
    }

    @Override
    public Intent getClickNotificationJumpActivityIntent() {
        return new Intent(mContext, CouponActivity.class);
    }

    @Override
    protected void addExtraDataToNotificationClickReceiverIntent(Intent intent) {
        // 不需要添加额外的数据
    }

    @Override
    public void onDialogEnsureButtonClick(Message message) {
        CouponActivity.actionStart((Activity) mContext);
        tellServerMessageHasRead(message.getMsgId());
    }
}
